import {
	request
}
from './req';

const telLogin = params => request('hc/hcUser/login', params, 'get');
const setOpenId=params=>request('hc/hcMerchant/setOpenId',params,'get');
const getCode=params=>request('/hc/hcUser/sendSms',params,'get');
const storeLogin = params => request('hc/hcMerchant/login', params, 'get');
const getMyInfo = params => request('hc/hcMerchant/queryById', params, 'get');
const getStoreGoodList = params => request('hc/hcOrderMerchant/getOrderListByMerchantId', params, 'get');
const getDetStoreGoodList = params => request('/hc/hcOrderMerchant/getOrderListByMerchant', params, 'get');
const getAfterSalesList = params => request('hc/hcAfterSales/getMerchantList', params, 'get');
const editStoreInfo = params => request('hc/hcMerchant/edit', params, 'post');
const getMainCategories = params => request('hc/hcMainCategories/getList', params, 'get');
const getPosiList = params => request('hc/hcSite/list', params, 'get');
const getStoreList = params => request('hc/hcMerchant/list', params, 'get');
const createStore = params => request('hc/hcMerchant/add', params, 'post');
const editStore = params => request('hc/hcMerchant/edit', params, 'post');
const addGood = params => request('hc/hcCommodity/addByMerchant', params, 'post');
const getGoodList = params => request('hc/hcCommodity/getMerchantList', params, 'get');
const editGood = params => request('hc/hcCommodity/edit', params, 'post');
const deteleGood = params => request('hc/hcCommodity/delete', params, 'delete');
const getStoreSystemInfo = params => request('hc/hcOrderMerchant/getOrderStatistics', params, 'get');
const exportExcelById = params => request('hc/hcOrderMerchant/exportXls', params, 'get')
const changeStoreState = params => request('hc/hcMerchant/editStoreStatus', params, 'post')
const getStoreData = params => request('hc/hcOrderMerchant/getMerchantDataList', params, 'get');
const getFoodStateTotal = params => request('hc/hcCommodity/getStatistics', params, 'get');
const editAfterSaleOrder = params => request('hc/hcAfterSales/edit', params, 'post');
const changeStoreBusinessState=params=>request('/hc/hcMerchant/editState',params,'post');
const getTotalData=params=>request('/hc/hcOrderMerchant/getMerchantDataTotalIncome',params,'get');
const getSetTelementDetailList=params=>request('/hc/hcMerchantSettlement/queryRecordListByLogin',params,'get');

export {
	telLogin, //手机号登录
	setOpenId, //设置商家归属个人openid
	getCode, //获取验证码
	storeLogin, //商家登录
	getStoreSystemInfo, //获取首页上家的统计信息
	getStoreGoodList, //获取当前商家的订单信息
	getMyInfo, //获取当前商家的信息
	editStoreInfo, //编辑当前商家的信息
	getAfterSalesList, //获取售后订单列表
	getMainCategories, //获取主营品类
	getPosiList, //获取站点列表
	getStoreList, //获取门店列表
	createStore, //创建门店
	editStore, //编辑门店
	addGood, //创建商品
	getGoodList, //获取商品列表
	editGood, //编辑商品信息
	deteleGood, //删除商品
	exportExcelById, //导出excel
	changeStoreState, //更改商家的门店接单状态
	getStoreData, //获取商家状态
	getFoodStateTotal, //获取商家各状态的总数
	getDetStoreGoodList,
	editAfterSaleOrder, //编辑售后订单
	changeStoreBusinessState, //更改商家营业状态
	getTotalData, //获取数据页面顶部数据
	getSetTelementDetailList, //获取结算记录
}
